package cn.com.nroad.repository;

import cn.com.nroad.domain.Evidence;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @description:
 * @author: jia
 * @date: 2018-12-24 16:43
 */
@Repository
public interface EvidenceJpaRepository extends JpaRepository<Evidence,String> {

    /**
     * 根据编号获取佐证
     * @param id
     * @return  Optional<Evidence>
     */

    Optional<Evidence> findById(String id);
}
